package org.jeecg.modules.chg.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.vo.JwidModel;
import org.jeecg.modules.chg.entity.ChgFees;
import org.jeecg.modules.chg.entity.ChgPayments;

/**
 * @Description: 公众号微信支付
 * @Author: jeecg-boot
 * @Date:   2022-02-21
 * @Version: V1.0
 */
public interface IChgMpService extends IService<ChgFees> {


	/**创建支付预订单*/
	public Result<?> createMpOrder(JwidModel jwidModel, JSONObject orderObj)throws Exception;

    /**创建支付回调处理服务*/
    Result<?> wehcatPayback(JwidModel jwidModel, String body, String nonceStr, String serialNo, String signature, String timestamp);

    /**客户端支付成功-查询订单状态-核销*/
    Result<?> queryMpOrderState(JwidModel jwidModel, JSONObject orderObj);

    /**客户端支付成功-查询订单状态-核销*/
    Result<?> queryOrderState(JwidModel jwidModel, ChgPayments chgPayments );

    //根据微信交易单号查询订单状态
    Result<?> queryWxtOrderState(JwidModel jwidModel, ChgPayments chgPayments);
}
